package manager.auxiliares;

import java.awt.Color;
import javax.swing.JLabel;

public class LabelColorThread implements Runnable {

    int updateInterval = 1000;
    JLabel jLabel;

    public LabelColorThread(JLabel newJLabel) {
        super();
        this.jLabel = newJLabel;
    }

    @Override
    public void run() {
        jLabel.setForeground(Color.red);
        try {
            Thread.sleep(updateInterval);
            jLabel.setForeground(Configurations.getFieldValidationNotOk());
        } catch (InterruptedException e) {
        }
    }
}
